hvm, ioemu: Fix the ide/cdrom emulation error on FC7 guest.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jan 2008 09:50:06 +0000 (09:50 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jan 2008 09:50:06 +0000 (09:50 +0000)
commit92765dcf802a54c21134a175ef968d19e9bc3e93
tree8c8e867b9ff393eec808f6afb91674f71910d11a
parentd7a14c642b009f8a99032ea4eda7fefb65d44038
hvm, ioemu: Fix the ide/cdrom emulation error on FC7 guest.

The new libata-eh in the Linux kernel is throwing a fit over the QEMU
cdrom device for two reasons:

1) DRQ can be set with ERR_STAT set.  This is a violation of the ATAPI
state machine.

2) After a TEST_UNIT_READY ATAPI command is sent ERR_STAT is getting
   set
which is correct.  But, when the OS issues another ATAPI command
ERR_STAT is still set.  Which is bad since the next expected command
from the OS is REQUEST_SENSE to find out why ERR_STAT is set.

bug this fixes: https://bugzilla.novell.com/show_bug.cgi?id=3D291775

Signed-off-by: Brandon Philips <bphilips@suse.de>
Porting this qemu fix to xen.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
tools/ioemu/hw/ide.c